#ifndef _PYSICS_CALC_H_
#define _PYSICS_CALC_H_

#include "../../common/vector.h"
#include "world.h"
#include "world_entity.h"
#include "../gameplay/gameplay.h"

#include "collision_detector.h"

class World;
class WorldEntity;
class WorldArea;
class WorldPlayer;
class WorldProjectile;
class CollisionDetector;
class GamePlay;

extern GamePlay* gamePlay;

class PhysicsCalc
{
	private:
		Vector2D *gravity;
		CollisionDetector *collisionDetector;
		
	public:
		PhysicsCalc(void);
		~PhysicsCalc(void);
		void updateEntities(World *w, double delta);
		void updateEntity(WorldEntity *entity, double delta);
		
		void updateEntity(WorldPlayer *entity, double delta);
		void updateEntity(WorldArea *entity, double delta);
		void updateEntity(WorldProjectile *entity, double delta);
		
};


#endif
